<!DOCTYPE html>
<html>
    <head>
        {include file='public/meta'/}
        <style>
            thead tr th{
                text-align: center;
            }
            tbody tr td{
                text-align: center;
            }
        </style>
    </head>
    <body>
    {include file='public/header'/}
    <!------------------导航-------------------------->
    <section id="content">
        {include file='public/left'/}
        <!--------------------------主要内容区域------------------------------------->
        <div class="content" >
            <div class="page-heading">
                <ul class="breadcrumb">
                    <li>
                        当前位置是&nbsp;:&nbsp;微信门店
                    </li>
                    <li class="active" style="color: #02b87f;">已创建微信门店列表</li>
                </ul>
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">
                        筛选分类
                    </h3>
                </div>
                <div class="panel-body">

                        <div class="page-toolbar row m-b-sm m-t-sm">
                            <div class="col-sm-5 pull-left">
                                <form action="" method="post" class="form-virtical table-search" role="form" id="machform">
                                <div class="input-group col-sm-12">
                                    <input type="text" style="border:1px solid #A9A9A9;border-radius: 0;border-top-left-radius:3px;border-bottom-left-radius: 3px;  " class="input-sm select-md col-sm-2" id="merchant" placeholder="会员卡名称"  value="" name="merchant">
                                    <select name="pay_fs" class="input-sm select-md col-sm-2" style="padding:0 5px;border-radius: 0;"  id="classes1" onchange="opt()">
                                        <option value="">请选择类别</option>
                                    </select>
                                    <span class="input-group-btn pull-left">
                                        <button class="btn btn-sm btn-primary" type="submit" onclick="filtertj()"> 搜索</button>
                                        <span class="btn btn-sm btn-default" onclick="cleartj()">清除条件</span>
                                    </span>
                                </div>
                                </form>
                            </div>

                            <div class="col-sm-3 pull-left">
                                <form action="" method="post" class="form-virtical table-search" >
                                <input type="text" style="border:1px solid #A9A9A9;border-radius: 0;border-top-left-radius:3px;border-bottom-left-radius: 3px;  " class="input-sm select-md col-sm-2"  placeholder="门店id" name="poi_id">
                                    <button class="btn btn-sm btn-primary" type="submit"> 查询</button>
                                </form>
                            </div>
                            <div class="col-sm-4 pull-right">
                                <a href="{:url('store/addstore')}" class="btn btn-info">添加微信门店</a>
                                <a href="{:url('store/getstorelist')}" class="btn btn-info">查询列表</a>
                            </div>
                        </div>

                </div>
            </div>
            <div class="panel mgl15 mgr15" >
                <div class="panel-heading addCharts" style="background:#ededed;">门店列表</div>
                <table class="table table-hover" data-toolbar="#toolbar">
                    <thead>
                        <tr>
                            <th>ID</th>
                            <th>商户ID</th>
                            <th>商户LOGO</th>
                            <th>商户名称</th>
                            <th>商户状态</th>
                            <th>创建时间</th>
                            <th>操作</th>

                        </tr>
                    </thead>
                    <tbody>
                    {volist name="list" id="vo"}
                        <tr>
                            <td>{$vo['id']}</td>
                            <td>{$vo['mid']}</td>
                            <td><img src="{$vo.logo_url}" style="width:20px;height:20px;"/></td>
                            <td>{$vo.business_name}</td>
                            <td>
                                {switch name="vo.statu"}
                                    {case value="0"}创建失败{/case}
                                    {case value="1"}正常{/case}
                                    {case value="2"}已删除{/case}
                                {/switch}
                            </td>
                            <td>{$vo.create_time}</td>
                            <td class="chakan">
                                <a href="{:url('store/storeinfo',['id'=>$vo['id']])}">查看</a>
                                <a href="{:url('store/editstore',['id'=>$vo['id'],'sid'=>$vo['sid']])}">|修改</a>
                                <a href="{:url('store/delstore',['id'=>$vo['id']])}">|删除</a>
                            </td>
                        </tr>
                    {/volist}
                    </tbody>
                </table>
            </div>
            {include file='public/footer'/}
        </div>
    </section>
</body>

</html>
